package com.car.loan.project.xr.service;

import com.car.loan.framework.aspectj.lang.annotation.DataScope;
import com.car.loan.project.xr.mapper.IndexMapper;
import com.car.loan.project.xr.util.bo.business.IndexBaseQuery;
import com.car.loan.project.xr.util.vo.IndexData;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author huangding
 * @date 2020/3/6 15:56
 */
@Service
public class IndexService {

    @Resource
    private IndexMapper indexMapper;

    @DataScope(deptAlias = "d", userAlias = "u")
    public List<IndexData> getBaseByQuery(IndexBaseQuery indexBaseQuery) {
        return indexMapper.selectByQuery(indexBaseQuery);
    }



}
